home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 75 / XENIATGM75.iso / Shareware / X-Setup 5.0 / _SETUP.1 / XQ ASP Options General 2.xpl < prev    next >
Text File  |  1998-08-08  |  2KB  |  50 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 3.1"
  2. "TYPE"="6"
  3. "COUNT"="2"
  4. "UIPATH"="Internet\ASP Settings"
  5. "NAME"="General Settings (2)"
  6. "LANGUAGE"="VBScript"
  7. "TEXT 1"="Allow EXE components"
  8. "TEXT 2"="Activate ODBC-Connection pooling"
  9. "DESCRIPTION 1"="Allow EXE components: Normally ASP does only allow DLL components to be used from scripts. If you activate this option, scripts can also use EXE components. (default: Deactivated)"
  10. "DESCRIPTION 2"="Activate ODBC pooling: If activated, all ODBC-Connections are pooled so they need fewer resources but queries will also be slower. (default: deactivated)"
  11. "AUTHOR"="Xteq Systems"
  12. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  13. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@gmx.net."
  14. "COMMENT 2"="Version 1.1"
  15.  
  16.  
  17. sP="HKLM\System\CurrentControlSet\Services\W3SVC\ASP\Parameters\"
  18. vEC="AllowOutOfProcCmpnts" 'DW
  19. vOC="StartConnectionPool" 'DW
  20. Sub Plugin_Initialize 
  21.  If RegPathExists(sP) then
  22.   If RegReadValue(sp&vec)=1 then SetUIElement 1,true
  23.   If RegReadValue(sp&voc)=1 then SetUIElement 2,true
  24.  else
  25.   Disable
  26.  end if
  27. End Sub
  28.  
  29. Sub Plugin_CheckData(ElementIndex)
  30. End Sub
  31.  
  32. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  33.  b=GetUIElement(1)
  34.  if b=true then
  35.   Call RegWriteValue(sp&vec,1,2)
  36.  else
  37.   Call RegWriteValue(sp&vec,0,2)
  38.  end if
  39.  
  40.  b=GetUIElement(2)
  41.  if b=true then
  42.   Call RegWriteValue(sp&voc,1,2)
  43.  else
  44.   Call RegWriteValue(sp&voc,0,2)
  45.  end if
  46. End Sub
  47.  
  48. Sub Plugin_Terminate 
  49. End Sub
  50.